define(["angularAMD"], function (angularAMD) {
    angularAMD.service('QT05PlotInfoService', ['$state','$rootScope', '$filter', '$stateParams', 'config', '$mdDialog', 'MMWService',
        function ($state, $rootScope, $filter, $stateParams, config, $mdDialog, $MMWService) {

            this.init = function(info,call_back){
                openDialog(info,call_back)
            };

            function openDialog(info,call_back){
                $mdDialog.dialog(
                    'module/moduleQT/program/QT05/dialog/QT05_plot_Info.html',
                    function (dialog) {
                        return {
                            css_url:'module/moduleQT/program/QT05/QT05.css',
                            info:angular.copy(info),
                            init:function(){
                            },
                            back:function(){
                                dialog.hide();
                            },
                            confirm: function(){
                                dialog.hide();
                            }
                        };
                    }
                );
            };          
        }
    ])
});
